from django.urls import path
from . import views

urlpatterns = [
    path('', views.DeckListView.as_view(), name='deck-list'),
    path('<int:pk>/', views.DeckDetailView.as_view(), name='deck-detail'),
    path('<int:deck_id>/cards/', views.add_card_to_deck, name='add-card-to-deck'),
    path('<int:deck_id>/cards/<int:card_id>/', views.remove_card_from_deck, name='remove-card-from-deck'),
    path('user-cards/', views.get_user_cards, name='get-user-cards'),
    path('<int:deck_id>/validate/', views.validate_deck, name='validate-deck'),
    path('<int:deck_id>/duplicate/', views.duplicate_deck, name='duplicate-deck'),
]
